<template>
  <div class=''>我是兄弟一
      <input type="text" v-model="msg">
      <button @click="add()">点击传参</button>
  </div>
</template>

<script>
import { EventBus } from '../../bus'
export default {
  name: 'MyComponent',
  props: { },
  data () {
    return {
      msg: '我是兄弟一的值'
    }
  },
  methods: {
    add () {
      EventBus.$emit('add', this.msg)
    }
  },
  computed: { },
  created () { },
  mounted () { }
}
</script>

<style scoped lang='less'></style>
